package com.wicket.okrapp.web.contorller;

import com.wicket.okrapp.biz.service.ConventionalSchedulingService;
import com.wicket.okrapp.biz.service.dto.req.*;
import com.wicket.okrapp.biz.service.dto.res.*;
import com.wicket.okrapp.common.ro.OkrResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@RestController
@RequestMapping("/app/conventionalScheduling/")
public class ConventionalSchedulingController {

  @Autowired
  ConventionalSchedulingService conventionalSchedulingService;
/**
   * D3-执行调度是否可以执行判断(公共)
   */
    @PostMapping("implementSchedulingCanBeExecuteCom")
    public OkrResult<ImplementSchedulingCanBeExecuteComRespDto> implementSchedulingCanBeExecuteCom(@RequestBody @Validated ImplementSchedulingCanBeExecuteComReqDto reqDTO){
    return OkrResult.success(conventionalSchedulingService.implementSchedulingCanBeExecuteCom(reqDTO));
    }
/**
   * D3-执行四棵树偏差天数等数据(公共)
   */
    @PostMapping("implementFourTreeDeviationDaysEtcCom")
    public OkrResult<ImplementFourTreeDeviationDaysEtcComRespDto> implementFourTreeDeviationDaysEtcCom(@RequestBody @Validated ImplementFourTreeDeviationDaysEtcComReqDto reqDTO){
    return OkrResult.success(conventionalSchedulingService.implementFourTreeDeviationDaysEtcCom(reqDTO));
    }
/**
   * D3-执行周期阶段当前周期等(公共)
   */
    @PostMapping("implementStageCurrentCycleEtcCom")
    public OkrResult<ImplementStageCurrentCycleEtcComRespDto> implementStageCurrentCycleEtcCom(@RequestBody @Validated ImplementStageCurrentCycleEtcComReqDto reqDTO){
    return OkrResult.success(conventionalSchedulingService.implementStageCurrentCycleEtcCom(reqDTO));
    }
///**
//   * D3-执行任务逾期等数据(公共)
//   */
//    @PostMapping("implementTaskOverdueEtcCom")
//    public OkrResult<ImplementTaskOverdueEtcComRespDto> implementTaskOverdueEtcCom(@RequestBody @Validated ImplementTaskOverdueEtcComReqDto reqDTO){
//    return OkrResult.success(conventionalSchedulingService.implementTaskOverdueEtcCom(reqDTO));
//    }
/**
   * D3-执行目标完成状态校验(公共)
   */
    @PostMapping("implementCheckTargetIsDoneCom")
    public OkrResult<ImplementCheckTargetIsDoneComRespDto> implementCheckTargetIsDoneCom(@RequestBody @Validated ImplementCheckTargetIsDoneComReqDto reqDTO){
    return OkrResult.success(conventionalSchedulingService.implementCheckTargetIsDoneCom(reqDTO));
    }
/**
   * D3-查询常规调度详情(公共)
   */
    @PostMapping("queryStageCurrentCycleDetailCom")
    public OkrResult<QueryStageCurrentCycleDetailComRespDto> queryStageCurrentCycleDetailCom(@RequestBody @Validated QueryStageCurrentCycleDetailComReqDto reqDTO){
    return OkrResult.success(conventionalSchedulingService.queryStageCurrentCycleDetailCom(reqDTO));
    }
/**
   * D3-执行任务逾期调度(公共)
   */
    @PostMapping("implementTaskOverdueEtcCom")
    public OkrResult<ImplementTaskOverdueEtcComRespDto> implementTaskOverdueEtcCom(@RequestBody @Validated ImplementTaskOverdueEtcComReqDto reqDTO){
    return OkrResult.success(conventionalSchedulingService.implementTaskOverdueEtcCom(reqDTO));
    }
/**
   * D3-执行四棵树偏差天数调度(公共)
   */
    @PostMapping("implementFourTreeDeviationDaysEtcScheduleCom")
    public OkrResult<ImplementFourTreeDeviationDaysEtcScheduleComRespDto> implementFourTreeDeviationDaysEtcScheduleCom(@RequestBody @Validated ImplementFourTreeDeviationDaysEtcScheduleComReqDto reqDTO){
    return OkrResult.success(conventionalSchedulingService.implementFourTreeDeviationDaysEtcScheduleCom(reqDTO));
    }
///**
//   * D3-执行任务逾期调度(公共)
//   */
//    @PostMapping("implementTaskOverdueEtcCom")
//    public OkrResult<ImplementTaskOverdueEtcComRespDto> implementTaskOverdueEtcCom(@RequestBody @Validated ImplementTaskOverdueEtcComReqDto reqDTO){
//    return OkrResult.success(conventionalSchedulingService.implementTaskOverdueEtcCom(reqDTO));
//    }
///**
//   * D3-执行任务逾期调度(公共)
//   */
//    @PostMapping("implementTaskOverdueEtcCom")
//    public OkrResult<ImplementTaskOverdueEtcComRespDto> implementTaskOverdueEtcCom(@RequestBody @Validated ImplementTaskOverdueEtcComReqDto reqDTO){
//    return OkrResult.success(conventionalSchedulingService.implementTaskOverdueEtcCom(reqDTO));
//    }

}
